package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FeeGuahaoMapper;
import com.ruoyi.system.domain.FeeGuahao;
import com.ruoyi.system.service.IFeeGuahaoService;

/**
 * 挂号交费信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-27
 */
@Service
public class FeeGuahaoServiceImpl implements IFeeGuahaoService 
{
    @Autowired
    private FeeGuahaoMapper feeGuahaoMapper;

    /**
     * 查询挂号交费信息
     * 
     * @param id 挂号交费信息主键
     * @return 挂号交费信息
     */
    @Override
    public FeeGuahao selectFeeGuahaoById(Long id)
    {
        return feeGuahaoMapper.selectFeeGuahaoById(id);
    }

    /**
     * 查询挂号交费信息列表
     * 
     * @param feeGuahao 挂号交费信息
     * @return 挂号交费信息
     */
    @Override
    public List<FeeGuahao> selectFeeGuahaoList(FeeGuahao feeGuahao)
    {
        return feeGuahaoMapper.selectFeeGuahaoList(feeGuahao);
    }

    /**
     * 新增挂号交费信息
     * 
     * @param feeGuahao 挂号交费信息
     * @return 结果
     */
    @Override
    public int insertFeeGuahao(FeeGuahao feeGuahao)
    {
        return feeGuahaoMapper.insertFeeGuahao(feeGuahao);
    }

    /**
     * 修改挂号交费信息
     * 
     * @param feeGuahao 挂号交费信息
     * @return 结果
     */
    @Override
    public int updateFeeGuahao(FeeGuahao feeGuahao)
    {
        return feeGuahaoMapper.updateFeeGuahao(feeGuahao);
    }

    /**
     * 批量删除挂号交费信息
     * 
     * @param ids 需要删除的挂号交费信息主键
     * @return 结果
     */
    @Override
    public int deleteFeeGuahaoByIds(Long[] ids)
    {
        return feeGuahaoMapper.deleteFeeGuahaoByIds(ids);
    }

    /**
     * 删除挂号交费信息信息
     * 
     * @param id 挂号交费信息主键
     * @return 结果
     */
    @Override
    public int deleteFeeGuahaoById(Long id)
    {
        return feeGuahaoMapper.deleteFeeGuahaoById(id);
    }
}
